<div class="navbar navbar-fixed-top">
	<div class="navbar-inner">
		<div class="container">
			<a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse"> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </a>
			<a class="brand" href="<%= root_path %>">QCafe</a>
			<div class="nav-collapse collapse">
				<ul class="nav">
					<!-- <li>
						<a href="<%= root_path %>"><%= t 'trang_chu'%></a>
					</li> -->
					<li>
						<a href="<%= url_for danh_muc_ca_phe_path %>"><%= t 'ca_phe'%></a>
					</li>
					<li>
						<a href="<%= url_for danh_muc_giai_khat_path %>"><%= t 'giai_khat'%></a>
					</li>
					<li>
						<a href="<%= url_for danh_muc_thuc_an_nhe_path %>"><%= t 'thuc_an_nhe'%></a>
					</li>
					<li>
						<a href="<%= url_for :controller => '/bai_viet', :action=> 'danh_muc', :danh_muc=>'blog_ca_phe' %>"><%= t 'blog_ca_phe'%></a>
					</li>
					<li>
						<a href="<%= url_for :controller => '/bai_viet', :action=> 'danh_muc', :danh_muc=>'tin_qcafe' %>"><%= t 'tin_qcafe'%></a>
					</li>
					<li>
						<a href="<%= lien_he_path %>"><%= t 'lien_he'%></a>
					</li>
				</ul>
				<ul class="nav pull-right">
					<% if is_khach() %>
					<li>
						<a href="<%= dang_ky_path %>"><%= t 'tao_tai_khoan'%></a>
					</li>
					<li>
						<a href="<%= dang_nhap_path %>"><%= t 'dang_nhap'%> <i class="icon-coffee"></i></a>
					</li>
					<% else %>
					<% nguoi_dung = nguoi_dung_hien_tai() %>
					<li>
						<a href="<%= url_for :action=>"index", :controller => "/gio_hang" %>"><%= t 'gio_hang'%> <i class="icon-shopping-cart"></i></a>
					</li>
					<li class="dropdown">
						<a href="#" class="dropdown-toggle" data-toggle="dropdown"> <%= image_tag gravatar_url(nguoi_dung.email, 24)%>
						<%= nguoi_dung.ten_hien_thi%> <b class="caret"></b> </a>
						<ul class="dropdown-menu">
							<li>
								<a href="<%= url_for :action => "cap_nhat", :controller=>"/nguoi_dung" %>"><%= t('thong_tin_tai_khoan')%></a>
							</li>
							<li>
								<a href="<%= url_for :action => "lich_su_mua_hang", :controller=>"/nguoi_dung" %>"><%= t('lich_su_mua_hang')%></a>
							</li>
							<%if nguoi_dung.co_quyen_quan_ly %>
							<li>
								<a href="<%= url_for :action => "index", :controller=>"/admin/main" %>"><%= t('bang_quan_tri')%></a>
							</li>
							<%end%>
							<li>
								<a href="<%= dang_xuat_path %>"><%= t 'dang_xuat'%> <i class="icon-unlock"></i></a>
							</li>
						</ul>
					</li>
					<% end %>
				</ul>
			</div><!--/.nav-collapse -->
		</div>
	</div>
</div>